FROM mysql:5.7

ENV MYSQL_ALLOW_EMPTY_PASSWORD yes
ENV MYSQL_ROOT_PASSWORD Huawei@123
ENV MYSQL_DATABASE ry

#将所需文件放到容器中
COPY data.sql /myinfo/data.sql
RUN chmod +777 /myinfo/data.sql
COPY job.sql /myinfo/job.sql
RUN chmod +777 /myinfo/job.sql

COPY setup.sh /docker-entrypoint-initdb.d/setup.sh
RUN chmod +777 /docker-entrypoint-initdb.d/setup.sh